package com.fm.openinstall.activity;

import android.app.*;
import android.content.*;
import android.os.*;
import com.fm.openinstall.*;
import com.fm.openinstall.listener.*;
import com.fm.openinstall.model.*;

public abstract class OpenInstallActivity extends Activity
{
    Intent openinstallIntent;
    AppWakeUpAdapter openinstallWakeUpAdapter;

    protected void onCreate(final Bundle bundle) {
        super.onCreate(bundle);
        this.openinstallWakeUpAdapter = new OpenInstallActivity$1(this);
        this.openinstallIntent = this.getIntent();
    }

    protected void onDestroy() {
        super.onDestroy();
        this.openinstallIntent = null;
        this.openinstallWakeUpAdapter = null;
    }

    protected void onNewIntent(final Intent openinstallIntent) {
        super.onNewIntent(openinstallIntent);
        this.openinstallIntent = openinstallIntent;
    }

    protected void onStart() {
        super.onStart();
        OpenInstall.getWakeUpYYB(this.openinstallIntent, this.openinstallWakeUpAdapter);
    }

    protected void onStop() {
        super.onStop();
        this.getIntent().removeExtra("openinstall_intent");
    }

    public void startActivity(final Intent intent) {
        super.startActivity(intent);
    }

    public void startActivityForResult(final Intent intent, final int n, final Bundle bundle) {
        intent.putExtra("openinstall_intent", true);
        super.startActivityForResult(intent, n, bundle);
    }

    protected abstract void wakeup(final AppData p0);
}
